import request from '@/utils/request'
import qs from 'qs';


//获取我的合同
export function getContractList(data) {
  return request({
    url: '/ajax/center/getContractList',
    method: 'post',
    data: qs.stringify(data)
  })
}

//生成合同
export function doCreate(data) {
  return request({
    url: '/ajax/center/doCreate',
    method: 'post',
    data: qs.stringify(data)
  })
}

//签署合同
export function doSign(data) {
  return request({
    url: '/ajax/center/doSign',
    method: 'post',
    data: qs.stringify(data)
  })
}

//查看合同
export function doView(data) {
  return request({
    url: '/ajax/center/doView',
    method: 'post',
    data: qs.stringify(data)
  })
}

// 下载合同
export function downloadContract(data) {
  return request({
    url: '/ajax/ssq/downloadContract',
    method: 'post',
    data: qs.stringify(data)
  })
}
// 合同预览
export function previewContract(data) {
  return request({
    url: '/ajax/ssq/previewContract',
    method: 'post',
    data: qs.stringify(data)
  })
}